package store

import (
    "../pb"
)

type PrepareList interface {
    Prepare(data *pb.MutationData) error
    Get(startOffset, endOffset uint64) ([]*pb.MutationData, error)
    Commit() (uint64, error)                   //need a committer
    Offsets() (uint64, uint64, uint64, uint64) //min ,dumped,committed ,prepared
    Dump() (uint64, error)                     //need timer?
    Truncate(offset uint64) error
    Reset() error
    Open() error
    Close() error
}
//dumped must behind snapshot
//prepare 1, committed 1, dumped n
